Authentication Service
TpAuthentication
The authentication object has to be send with every method whenever a user-authentication is required. This ensures that the user has the required access rights.
| Datatype | Name | Description |
|---|---|---|
| String | CustomerToken | Defines the mandated customer. This field correlates to the database settings in the TimePunch Server |
| String | TpUser | TimePunch Profile of the used Principal |
| String | TpHashedPwd | Password Hash (build with MD5 Encryption) |
| String | Identity | Profile Name of the used Identity, or empty, if the identity is equal to the principal. In order to switch the identity, the principal needs administration rights. |
| String | Culture | Culture that is used for the localization. e.g. „de-DE” |
ValidatedAuthenticationDto : TpAuthentication
This class is returned at logon and contains the permissions and the filled customer token in addition to the transferred data of the TpAuthentication class.
| Datatype | Name | Description |
|---|---|---|
| List<String> | ValidatedPermissions | Permissions of the logged on user. |
| String | OpenIdProvider | The connected OAuth2/OpenId Provider |
| Guid | UserId | The unique Id of the TimePunch user |